public class Program10 {
    public static void main(String[] args) {
        double back_height = 0,current_height = 100,s = 0;
        for (int i = 0; i < 10; i++) {
            s += current_height;
            back_height = current_height/2;
            s += back_height;
            current_height = back_height;
        }
        s -= back_height;
        System.out.println("第十次落地时，经过了" + s + "米\n"+"第十次反弹" + back_height + "米");
    }
}